package com.zhouchb.test.设计模式.工厂模式.factory_method;

/**
 * @Create 2023-06-25 22:25
 * @Description
 */
public class PizzaStore {
    FactoryMethod factory  = null;
    public void setFactoryName(FactoryMethod factory){
        this.factory = factory;
    }
    public void PizzaOrder(){
        Pizza pizza = factory.createPizza();
        System.out.println(pizza.name());
        pizza.cut();
        pizza.box();
    }
}
